package cn.tedu.boyou.comment.service;

import cn.tedu.boyou.comment.domain.AnswerComment;
import cn.tedu.boyou.common.query.AnswerCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IAnswerCommentService {
    AnswerComment save(AnswerComment comment);

    Page<AnswerComment> query(AnswerCommentQuery qo);

    List<AnswerComment> getCommentByTop5();

    List<AnswerComment> getComment(Long id);

    AnswerComment get(String parentId);

    void update(AnswerComment parent);
    //AnswerComment getOne(Long ans);
    AnswerComment getOne(Long ans);

    List<AnswerComment> getRefComment(String pid);

    void updateThumbsupnum(AnswerComment comment);
}
